import { markRaw } from 'vue';
import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';

const pageRouter: Array<RouteRecordRaw> = [
  {
    name: 'monitor',
    path: '/system',
    component: markRaw(Layout),
    redirect: 'noredirect',
    meta: { title: '系统监控', index: 1 },
    children: [
      {
        name: 'system-monitor',
        path: 'monitor',
        component: () => import(/* webpackChunkName: "monitor" */ '@/views/systemMonitor/index.vue'),
        meta: { title: '系统监控', activeMenu: '/system' },
      },
    ],
  },
];

export default pageRouter;
